#include <stdio.h>
#include "log.h"

void MAIN(void)
{
	log_default_streams_t scl;
    void *data;
    int i;
    size_t size;

#ifndef LIBDYNAMIC
	liblog_init();
#endif

	printf("test!\n");

	scl = logAddDefaultStreams(NULL);
    logEdit(scl.crawl, LOG_GROUP_SET_LEVEL);

	logRegisterThread("main");
	lprintf(STREAM(scl.info), "Test!");

    size = 1;
    for (i=0; i < 2000; i++)
    {
      data = malloc(rand()%1024);
      usleep(100000L);
    }

	printf("done!\n");
}
